#include "StdAfx.h"
#include "Settings.h"

Settings::Settings(void)
{
	SetDefault();
}

Settings::~Settings(void)
{
}

void Settings::SetDefault()
{
	normalizeVocoder = true;
	samplingRate = 48000;
	windowLength = 2048;
	
	pitchTracker.amplitudeThreshold = 0.85;
	pitchTracker.noiseThreshold = 6.0;

	carrier.frequency = 110;
	carrier.frequencyVariation = 1;
	carrier.whiteNoise = 0;
	carrier.brownNoise = 0;
	carrier.random = 200;
	carrier.function1 = 0;
	carrier.function2 = 200;
	carrier.function3 = 200;
	carrier.triangular = 400;
	carrier.square = 150;
	carrier.sawtooth = 250;
	carrier.sine = 0;
	carrier.sineF2 = 0;
	carrier.sineF3 = 0;
	carrier.sineF4 = 0;
	carrier.sineF5 = 0;
	carrier.sineF6 = 0;
	carrier.sineF7 = 0;

	player.shouldRecord = false;
	player.streamType = PlayerSettings::StreamType::Vocoder;

	vocoder.applySilence = false;
	vocoder.absSilenceThreshold = 400;
	vocoder.minSilenceSamples = 100;
	vocoder.normalize = true;
	vocoder.mixWithModulator = false;
}